package HomeWork3_17;

import java.util.Arrays;
import java.util.Scanner;

public class HomeWork3_17_1 {
    public static void main(String[] args) {
        int[] a = new int[5];
        System.out.println("请输入5个整数：");
        Scanner sc = new Scanner(System.in);
        for (int i = 0; i < 5; i++) {
            a[i] = sc.nextInt();
        }
        Arrays.sort(a);
        System.out.println("升序排序后：");
        for (int i = 0; i < 5; i++) {
            System.out.print(a[i] + " ");
        }
    }

}
